﻿using System;
using ProtoBuf;

namespace LingDong.IndexEntities.Document
{
    [ProtoContract,
    ProtoInclude(100, typeof(ParsedDocumentEntity)),
    ProtoInclude(101, typeof(OriginalDocumentEnity))]
    [Serializable]
    public class DocumentEnity
    {
        #region Constructor

        protected DocumentEnity()
        {
        }

        protected DocumentEnity(int docID, string url)
        {
            this.DocID = docID;
            this.URL = url;
        }

        #endregion
        

        #region Feilds

        /// <summary>
        /// Document ID
        /// </summary>
        [ProtoMember(1)]
        public int DocID { get; set; }

        /// <summary>
        /// Document URL
        /// </summary>
        [ProtoMember(2)]
        public string URL { get; set; }

        #endregion
    }
}
